package com.jiepu.homework.module5.exercise2;

public class DurationTest {

	public static void main(String[] args) {
		// 传入总秒数
		Duration d1 = new Duration(7260);
		System.out.println(d1);
		System.out.println(d1.getTotalSeconds());
		
		System.out.println("-----------------------");
		
		// 传入小时、分钟、秒钟
		Duration d2 = new Duration(3, 24, 50);
		System.out.println(d2);
		System.out.println(d2.getTotalSeconds());
	}
}
